package com.sright.bcard.user.biz.manager;

import com.sright.bcard.common.service.share.dto.user.RegisterDTO;

import java.text.ParseException;
import java.util.Map;

public interface AuthManager {

    /**
     * 注册
     * @param dto
     * @return
     */
    Long register(RegisterDTO dto) throws ParseException;

    /**
     * 登录
     * @param userName
     * @param password
     * @return
     */
    Map<String, Object> login(String userName, String password);

}
